package day4;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class ScannTest {
    public static void main(String[] args) {
        Scanner in=new Scanner("abc 123");
        String s1=in.next();
        int i=in.nextInt();
        System.out.println(s1);
        System.out.println(i);

        Scanner in2=new Scanner(System.in);
        System.out.println("input a num:");
        int k=in2.nextInt(16);
        System.out.println(k);
        String str=String.format("%X",k);
        System.out.println(str);
    }
}
